<?php
// mysql_connect('localhost','root','123456789');
// mysql_select_db('user');
// mysql_query('set names utf8');

// 连接数据库
define("HOST",'localhost');
define("USER",'root');
define("PWD",'123456789');
define("DBNAME",'usermanage');

$mysqli=new mysqli(HOST,USER,PWD,DBNAME);
if($mysqli->connect_error){
    die('数据库连接出错'.$mysqli->connect_error);
}

?>